import request from '@/utils/request'

// 查询保本卖出交易订单列表
export function listTKeepSellOrder(query) {
  return request({
    url: '/bussiness/TKeepSellOrder/list',
    method: 'get',
    params: query
  })
}

// 查询保本卖出交易订单详细
export function getTKeepSellOrder(id) {
  return request({
    url: '/bussiness/TKeepSellOrder/' + id,
    method: 'get'
  })
}

// 新增保本卖出交易订单
export function addTKeepSellOrder(data) {
  return request({
    url: '/bussiness/TKeepSellOrder',
    method: 'post',
    data: data
  })
}

// 修改保本卖出交易订单
export function updateTKeepSellOrder(data) {
  return request({
    url: '/bussiness/TKeepSellOrder',
    method: 'put',
    data: data
  })
}

// 删除保本卖出交易订单
export function delTKeepSellOrder(id) {
  return request({
    url: '/bussiness/TKeepSellOrder/' + id,
    method: 'delete'
  })
}
